package com.wtzz.police.base.repository.base;

import com.wtzz.police.base.util.RepoHelper;
import org.springframework.data.jpa.repository.support.JpaRepositoryImplementation;
import org.springframework.data.repository.NoRepositoryBean;

import java.io.Serializable;
/**
 * Repository基类
 */
@NoRepositoryBean
public interface BaseRepository<T , ID extends Serializable> extends  JpaRepositoryImplementation<T, ID>,RepoHelper {

    String getEntityDesc();

    Class<T> getEntityClass();

    T findByIdUnProxy(ID id);

    T findByIdOrNull(ID id);

    T findByIdOrThrow(ID id);

    T findNotLogicalDeleted(ID id);
}
